@echo off

REM To use this batch file, run this file elevated (runas administrator)

Set BaseDir=%~d0%~p0

SET BinDir=%BaseDir%

SET AssemblyName=Baula.TextGen.ComAndVbeIntegration.dll
SET BinPath=%BinDir%%AssemblyName%
SET TargetName=TextGen.tlb
SET TlbPath=%BinDir%%TargetName%
ECHO Registering TextGen for COM clients
%WinDir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe "%BinPath%" /codebase /nologo /silent
%WinDir%\Microsoft.NET\Framework\v4.0.30319\regtlibv12.exe "%TlbPath%"

pause